<?php
/*
 * Webing - The SNS Blog
 *
 * Copyright (c) 2009 Webing. All rights reserved.
 *
 * This is client requset
 */
 /*$Id: requset.php 74 2009-08-11 10:21:40Z chopins.xiao $*/
 
class requset
{
    public function __construct()
    {
        if(empty($_SESSION))
        {
            return FALSE;
        }
        $request['get'] = $this->set_session();
        if(!empty($_POST))
        {
            $request['post'] = $this->set_post();
        }
        if(!empty($_GET))
        {
            $request['get'] = $this->set_get();
        }
        if(!empty($_COOKIE))
        {
            $request['get'] = $this->set_get();
        }
        return $request;
    }
    private function set_get()
    {
        foreach ($_GET as &$var)
        {
            
        }
        return $_GET;
    }
    private function set_post()
    {
        return $_POST;
    }
    private function set_cookie()
    {
        return $_COOKIE;
    }
    private function set_session()
    {
        return $_SESSION;
    }
}
?>